package ooday01;

public class CarTest1 {
    public static void main(String[] args) {
        /*
        Car1 car = new Car1();
        car.brand = "奥迪";
        car.color = "黑色";
        car.price = 80;

        car.start();
        car.run();
        car.stop();


        Car1 car2 = new Car1("奔驰","白色",80);
        car2.start();
        car2.run();
        car2.stop();

         */

        Car1 car = new Car1();
        car.brand = "特斯拉";
        car.color = "灰色";
        car.price = 30;

        car.start();
        car.run();
        car.stop();


        Car1 car2 = new Car1("宝马","金色",40);
        car2.start();
        car2.run();
        car2.stop();




    }
}
